import service from '@/utils/request'

const ManagerApi = {
  addManager: function(data) {
    return service.post('manager', data)
  },
  editManager(data) {
    return service.put('manager', data)
  },
  deleteManager(data) {
    return service.put('manager/delete',data)
  },
  getManagerInfo(data) {
    return service.get('manager', {params: data })
  },
  listManager(data) {
    return service.get('manager/page',{params: data});
  },
  setManagerBinding(data){
    return service.post("managerDepart/setManagerBinding",data)
  },
  listIdName(data){
    return service.get('manager/listIdName',{params: data});
  }
}
export default ManagerApi
